﻿using System;
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Admin.NET.Core;
namespace Admin.NET.Application.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("car_tagmap","")]
    [Tenant("1300000000001")]
    public class car_tagmap   
    {
        [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true)]
        public  long Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "")]
        public long? caseid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "")]
        public long tagid { get; set; }


        //用例2：反向导航，2个字段匹配关系 
        [Navigate(NavigateType.OneToOne, nameof(tagid))]//一对一 SchoolId是StudentA类里面的
        public car_tag tag { get; set; } //不能赋值只能是null

    }
}